package com.bjdd.jdy.ui.news;

import com.bjdd.jdy.base.BaseModel;
import com.bjdd.jdy.base.BasePresenter;
import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.base.BaseView;
import com.bjdd.jdy.entity.NewsBean;

import java.util.List;

import rx.Observable;

/**
 * Created by Administrator on 2017/5/3.
 */

public interface NewsContract {
    interface Model extends BaseModel{
        Observable<BaseResult<List<NewsBean>>> getNewModel(String token,String carrierId);
    }
    interface View extends BaseView{
        void newsBack(List<NewsBean> data);
    }
    abstract class Presenter extends BasePresenter<Model,View>{
        abstract void getNews();
    }
}
